﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Default.Master" AutoEventWireup="true" CodeBehind="AddressDetail.aspx.cs" Inherits="MockPrjTeam1.Pages.Forms.AddressDetail" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
   
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">    
    <div id="templatemo_main">
	
           <div  style="color: #000000; font-weight: bold">
        <br />
    <table class="tablesort">
      <tr>
       <td class="style12">AddressID</td>
       <td class="style12b">
            <asp:TextBox ID="txtID" runat="server" CssClass="textbox" TabIndex="1" ReadOnly="True"></asp:TextBox>
       </td>
       <td><input type="hidden" id="Select" value="--Select--" /></td>
       </tr>
       <tr>
       <td class="style12">Address &nbsp;<font color="red">*</font></td>
       <td class="style12b">
            <asp:TextBox ID="txtAddress" runat="server" CssClass="textbox" TabIndex="2"></asp:TextBox>            
       </td>
       <td class="style12">Postcode &nbsp;<font color="red">*</font></td>
        <td class="style12b">
            <asp:TextBox ID="txtPostCode" runat="server" CssClass="textbox" TabIndex="3"></asp:TextBox>
            
        </td>        
        
      </tr>
      <tr>
        <td></td>
        <td>
            <asp:RequiredFieldValidator ID="rfAddress" ControlToValidate="txtAddress" runat="server" Text="<br />Address must be required" Display="Dynamic" /><br />
        </td>
        <td></td>
        <td>
            <asp:RequiredFieldValidator ID="rfPostCode" ControlToValidate="txtPostCode" runat="server" Text="<br />PostCode must be required" Display="Dynamic" /><br />
            <asp:CustomValidator ID="cvPostCode" runat="server" ControlToValidate="txtPostCode" EnableClientScript="true" onservervalidate="CustomValidator_PostCode" Text="PostCode must be unique" Display="Dynamic"></asp:CustomValidator>
        </td>
      </tr>
      <tr>            
        <td class="style12">Country</td>
        <td class="style12b">
        <br />
            <asp:DropDownList ID="DllCountry" runat="server" Height="20px" CssClass="textbox2" TabIndex="4" OnSelectedIndexChanged="dllCountry_SelectChanged" AutoPostBack="true">                            
            </asp:DropDownList>           
        </td>
        <td class="style12">County</td>
        <td class="style12b">
        <br />
            <asp:DropDownList ID="DllCounty" runat="server" Height="20px" CssClass="textbox2" TabIndex="5" OnSelectedIndexChanged="dllCounty_SelectChanged" AutoPostBack="true">                            
            </asp:DropDownList>            
        </td>
      </tr>
      <tr>
        <td></td>
        <td></td>
        <td class="style12">Town</td>
        <td class="style12b">
            <asp:DropDownList ID="DllTown" runat="server" Height="20px" CssClass="textbox2" TabIndex="6" OnSelectedIndexChanged="dllTown_SelectChanged" AutoPostBack="true">                            
            </asp:DropDownList>            
        </td>
      </tr>
      <tr>
        <td></td>
        <td></td>
        <td></td>
        <td>
            <asp:RequiredFieldValidator ID="rfTown" ControlToValidate="DllTown" runat="server" Text="<br />Country, County, Town must be required" Display="Dynamic" /><br />
        </td>
      </tr>
    </table>
      <br />
          <table>
       <tr>
         
         <td> <asp:Button ID="btnBack" Text="Back" 
                 runat="server" Width="65px" Height="25px" onclick="btnBack_Click"/></td>
         <td> 
             <asp:Button ID="btnSave" Text="Save" 
                 runat="server" Width="65px" Height="25px" onclick="btnSave_Click"/></td>
      </tr>
    </table>
    </div>
    </div>
</asp:Content>

